/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package it.bbSimulator.Model.eWallet;

import java.util.Date;
import java.util.HashMap;

/**
 *
 * @author Massimo
 */
public class Ewallet {
    HashMap moves;
    double value;
    
    public Ewallet()
    {
        moves=new HashMap();
        value=0;
    }
    public Ewallet(String file){
        loadFromFile(file);
    }
    
    public double addMoney(double val){
        moves.put(new Date(), val);
        value+=val;
        return value;
    }
    
    public void loadFromFile(String saveFile){
        moves=new HashMap();
        value=0;
    }
    
    public void saveToFile(String saveFile){
        
    }
}
